<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:th="http://www.thymeleaf.org">
<head>
<title>首页</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
	<div id="content">
		<section class="content-header">
			<h1>
				<i class="fa fa-file-image-o"></i> <strong>客户信息</strong>
			</h1>
			<ol class="breadcrumb">
				<li><a href="#"><i class="fa fa-home "></i>Home</a></li>
				<li>基本信息管理</li>
				<li class="active">客户信息</li>
			</ol>
		</section>
		<!-- Main content -->
		<section class="content">
			<div class="row">
				<div class="box box-info" id="customerEdit">
					<div class="box-header with-border">
						<i class="fa fa-th-list"></i>
						<h4 class="box-title">基本信息</h4>
					</div>
					<div class="box-body">
						<div class="form-horizontal">
							<input type="hidden" name="customerId" id="customerId" /> <input
								type="hidden" name="customercreateTime" id="customercreateTime" />
							<div class="form-group">
								<label class="col-sm-1 control-label">编号</label>
								<div class="col-sm-3">
									<div class="col-md-11">
										<input class="form-control" type="text" name="customerCode"
											id="customerCode" readonly="readonly"
											th:value="${customerCode}" />
									</div>
									<div class="col-md-1">
										<span style="color: #F00">*</span>
									</div>
								</div>
								<label class="col-sm-1 control-label">单位名称</label>
								<div class="col-sm-3">
									<div class="col-md-11">
										<input class="form-control" type="text" id="customerName"
											name="customerName" datatype="*,*1-100" nullmsg="请输入客户名称" />
									</div>
									<div class="col-md-1">
										<span style="color: #F00">*</span>
									</div>
								</div>
								<label class="col-sm-1 control-label">别名</label>
								<div class="col-sm-3">
									<input class="form-control" type="text" id="anotherName"
										name="anotherName" />
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-1 control-label">所属行业</label>
								<div class="col-sm-3">
									<div class="col-md-11">
										<select class="form-control" id="business" name="business">
											<option th:each="business:${businesses}"
												th:text="${business.title}" th:value="${business.value}"></option>
										</select>
									</div>
								</div>
								<label class="col-sm-1 control-label">所属片区</label>
								<div class="col-sm-3">
									<div class="col-md-11">
										<select class="form-control" id="saleArea" name="saleArea">
											<option th:each="saleArea:${saleAreas}"
												th:value="${saleArea.id}" th:text="${saleArea.superiorArea}"></option>
										</select>
									</div>
								</div>
								<label class="col-sm-1 control-label">上级单位</label>
								<div class="col-sm-3">
									<select class="form-control" id="superior" name="superior">
										<option></option>
										<option th:each="customer:${customers}"
											th:text="${customer.customerName}"></option>
									</select>
								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-1 control-label">订货代表</label>
								<div class="col-sm-3">
									<div class="col-md-11">
										<input class="form-control" type="text" id="cDHDB"
											name="cDHDB" />
									</div>
								</div>
								<label class="col-sm-1 control-label">订货电话</label>
								<div class="col-sm-3">
									<div class="col-md-11">
										<input class="form-control" type="text" id="cDHPhone"
											name="cDHPhone" />
									</div>
								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-1 control-label">公司地址</label>
								<div class="col-sm-11">
									<div class="col-md-11">
										<input class="form-control" type="text" id="address"
											name="address" />
									</div>
								</div>

							</div>
							<div class="form-group">
								<label class="col-sm-1 control-label">备注</label>
								<div class="col-sm-11">
									<div class="col-md-11">
										<textarea class="form-control" type="text" name="baseMemo"
											id="baseMemo"></textarea>
									</div>
								</div>
							</div>
						</div>
					</div>


					<div class="box-header with-border">
						<i class="fa fa-th-list"></i>
						<h4 class="box-title">开票信息</h4>
					</div>

					<div class="box-body">
						<div class="form-inline">
							<div class="input-group">
								<input type="text" class="form-control" id="pay-key-word"
									placeholder="Search..." /> <span class="input-group-btn">
									<button type="button" name="search" id="pay-search-btn"
										class="btn btn-info ">查询</button>
									<button type="button" name="reset" id="pay-reset-btn"
										class="btn btn-info ">撤消</button>
								</span>
							</div>
							<button type="button" class="btn btn-info pull-right "
								id="pay-delete-btn">删除</button>
							<button type="button" class="btn btn-info pull-right "
								id="pay-edit-btn">编辑</button>
							<button type="button" class="btn btn-info pull-right "
								id="pay-add-btn">添加</button>
						</div>
					</div>
					<div class="box box-body">
						<table id="payInfoTable" class="mytable display text-center"
							cellspacing="0" width="100%">
							<thead>
								<tr>
									<th width="5%">序号</th>
									<th width="5%"><input type="checkbox" id="checkPayAll" /></th>
									<th width="10%">纳税人识别号</th>
									<th width="10%">联系电话</th>
									<th width="10%">开票传真</th>
									<th width="10%">邮编</th>
									<th width="10%">开票地址</th>
									<th width="10%">开票银行</th>
									<th width="10%">银行账号</th>
									<!-- <th width="10%">税号</th> -->
									<th width="10%">备注</th>
								<th width="5%">主机默认</th>
									<th width="5%">备件默认</th>
								</tr>
							</thead>
							<tbody>

							</tbody>
						</table>
					</div>




					<div class="box-header with-border">
						<i class="fa fa-th-list"></i>
						<h4 class="box-title">邮寄信息</h4>
					</div>

					<div class="box-body">
						<div class="form-inline">
							<div class="input-group">
								<input type="text" class="form-control" id="mailing-key-word"
									placeholder="Search..." /> <span class="input-group-btn">
									<button type="button" name="search" id="mailing-search-btn"
										class="btn btn-info ">查询</button>
									<button type="button" name="reset" id="mailing-reset-btn"
										class="btn btn-info ">撤消</button>
								</span>
							</div>
							<button type="button" class="btn btn-info pull-right "
								id="mailing-delete-btn">删除</button>
							<button type="button" class="btn btn-info pull-right "
								id="mailing-edit-btn">编辑</button>
							<button type="button" class="btn btn-info pull-right "
								id="mailing-add-btn">添加</button>
						</div>
					</div>
					<div class="box box-body">
						<table id="mailingInfoTable" class="mytable display text-center"
							cellspacing="0" width="100%">
							<thead>
								<tr>
									<th width="5%">序号</th>
									<th width="5%"><input type="checkbox" id="checkMailingAll" /></th>
										<th width="18%">邮寄单位</th>
									<th width="13%">邮寄代表</th>
									<th width="13%">邮寄电话</th>
									<th width="18%">邮寄邮编</th>
									<th width="18%">邮寄地址</th>
									<th width="5%">主机默认</th>
									<th width="5%">备件默认</th>
								</tr>
							</thead>
							<tbody>

							</tbody>
						</table>
					</div>



					<div class="box-header with-border">
						<i class="fa fa-th-list"></i>
						<h4 class="box-title">发货信息</h4>
					</div>

					<div class="box-body">
						<div class="form-inline">
							<div class="input-group">
								<input type="text" class="form-control" id="send-key-word"
									placeholder="Search..." /> <span class="input-group-btn">
									<button type="button" name="search" id="send-search-btn"
										class="btn btn-info ">查询</button>
									<button type="button" name="reset" id="send-reset-btn"
										class="btn btn-info ">撤消</button>
								</span>
							</div>
							<button type="button" class="btn btn-info pull-right "
								id="send-delete-btn">删除</button>
							<button type="button" class="btn btn-info pull-right "
								id="send-edit-btn">编辑</button>
							<button type="button" class="btn btn-info pull-right "
								id="send-add-btn">添加</button>
						</div>
					</div>
					<div class="box box-body">
						<table id="sendInfoTable" class="mytable display text-center"
							cellspacing="0" width="100%">
							<thead>
								<tr>
									<th width="5%">序号</th>
									<th width="5%"><input type="checkbox" id="checkSendAll" /></th>
									<th width="18%">单位名称</th>
									<th width="13%">邮编</th>
									<th width="13%">收货人</th>
									<th width="18%">电话</th>
									<th width="18%">发货地址</th>
									<th width="5%">主机默认</th>
									<th width="5%">备件默认</th>
								</tr>
							</thead>
							<tbody>

							</tbody>
						</table>
					</div>






					<div class="box-header with-border">
						<i class="fa fa-th-list"></i>
						<h4 class="box-title">信用等级</h4>
					</div>
					<div class="box-body">
						<div class="form-horizontal">
							<div class="form-group">
								<label class="col-sm-1 control-label">资产性质</label>
								<div class="col-sm-3">
									<select class="form-control" id="asset" name="asset">
										<option value=""></option>
										<option th:each="asset:${assets}" th:text="${asset.title}"
											th:value="${asset.value}"></option>
									</select>
								</div>
								<label class="col-sm-1 control-label">续存年限</label>
								<div class="col-sm-3">
									<select class="form-control" id="continuelife"
										name="continuelife">
										<option value=""></option>
										<option th:each="continuelife:${continuelifes}"
											th:text="${continuelife.title}"
											th:value="${continuelife.value}"></option>
									</select>
								</div>
								<label class="col-sm-1 control-label">买方属性</label>
								<div class="col-sm-3">
									<select class="form-control" id="buyer" name="buyer">
									<option value=""></option>
										<option th:each="buyer:${buyers}" th:text="${buyer.title}"
											th:value="${buyer.value}"></option>
									</select>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-1 control-label">信用支付</label>
								<div class="col-sm-3">
									<select class="form-control" id="credit" name="credit">
									<option value=""></option>
										<option th:each="credit:${credits}" th:text="${credit.title}"
											th:value="${credit.value}"></option>
									</select>
								</div>
								<label class="col-sm-1 control-label">合作期限</label>
								<div class="col-sm-3">
									<select class="form-control" id="period" name="period">
									<option value=""></option>
										<option th:each="period:${periods}" th:text="${period.title}"
											th:value="${period.value}"></option>
									</select>
								</div>
								<label class="col-sm-1 control-label">领导赋值</label>
								<div class="col-sm-3">
									<input class="form-control" type="text" id="score" name="score"
										datatype="n" />
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-1 control-label">信用评分</label>
								<div class="col-sm-3">
									<input class="form-control" type="text" id="creditLevel"
										name="creditLevel" readonly="readonly" />
								</div>
							</div>
						</div>
					</div>










					<div class="box-header with-border">
						<i class="fa fa-th-list"></i>
						<h4 class="box-title">客户关键人物</h4>
					</div>
					<div class="box-body">
						<div class="form-inline">
							<div class="input-group">
								<input type="text" class="form-control" id="keyContactword"
									placeholder="Search..." /> <span class="input-group-btn">
									<button type="button" name="search" id="search-btn"
										class="btn btn-info searchKeyBtn">查询</button>
									<button type="button" name="reset" id="reset-btn"
										class="btn btn-info resetKeyBtn">撤消</button>
								</span>
							</div>
							<button type="button" class="btn btn-info pull-right delKeyBtn">删除</button>
							<button type="button" class="btn btn-info pull-right editKeyBtn">编辑</button>
							<button type="button" class="btn btn-info pull-right addKeyBtn">添加</button>
						</div>
					</div>
					<div class="box box-body">
						<table id="keyTable" class="mytable display text-center"
							cellspacing="0" width="100%">
							<thead>
								<tr>
									<th width="10%">序号</th>
									<th width="10%"><input type="checkbox" id="checkAll" /></th>
									<th width="10%">姓名</th>
									<th width="10%">称呼</th>
									<th width="10%">联系方式</th>
									<th width="10%">职务</th>
									<th width="10%">专业</th>
									<th width="10%">管理范围</th>
									<th width="20%">备注</th>
								</tr>
							</thead>
							<tbody>

							</tbody>
						</table>
					</div>
					
					
					
					
					
					
					
					
					<div class="box-body">
						<a type="button" class="btn btn-default resetBtn pull-right"
							href="javascript:history.go(-1)">返回</a>
						<button type="button" class="btn btn-info pull-right saveBtn">保存</button>
					</div>
				</div>
			</div>
		</section>
	
	
	
	
	
	
	
	
		<!-- 新增开票信息dialog -->
		<div class="modal" id="payInfo">
			<div class="modal-dialog modal-lg" role="dialog">
				<form id="payInfoForm">
					<input class="form-control" type="hidden" id="payId" name="payId" />
					<div class="modal-content">
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal"
								aria-label="Close">
								<span aria-hidden="true">&times;</span>
							</button>
							<h4 class="modal-title">
								<strong>开票信息</strong>
							</h4>
						</div>
						<div class="modal-body">
							<div class="form-horizontal">
								<div class="form-group">
									<label class="col-sm-2 control-label">纳税人识别号</label>
									<div class="col-sm-4">
										<div class="col-md-11">
											<input class="form-control" type="text" name="identification"
												id="identification" />
										</div>
									</div>
									<label class="col-sm-2 control-label">联系电话</label>
									<div class="col-sm-4">
										<div class="col-md-11">
											<input class="form-control" type="text" name="invoicePhone"
												id="invoicePhone" />
										</div>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">邮编</label>
									<div class="col-sm-4">
										<div class="col-md-11">
											<input class="form-control" type="text" name="zipCode"
												id="zipCode" />
										</div>
									</div>
									<label class="col-sm-2 control-label">开票地址</label>
									<div class="col-sm-4">
										<div class="col-md-11">
											<input class="form-control" type="text" name="invoiceAddress"
												id="invoiceAddress" />
										</div>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">开票银行</label>
									<div class="col-sm-4">
										<div class="col-md-11">
											<input class="form-control" type="text" name="invoiceBank"
												id="invoiceBank" />
										</div>
									</div>
									<label class="col-sm-2 control-label">银行账号</label>
									<div class="col-sm-4">
										<div class="col-md-11">
											<input class="form-control" type="text" name="bankAccount"
												id="bankAccount" />
										</div>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">开票传真</label>
									<div class="col-sm-4">
										<div class="col-md-11">
											<input class="form-control" type="text" name="invoiceFax"
												id="invoiceFax" />
										</div>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">主机默认地址</label>
									<div class="col-sm-4">
										<div class="col-md-11">
											<select id="pay-isDefaultHost" class="form-control" datatype="*">
												<option value="0">否</option>
												<option value="1">是</option>
											</select>
										</div>
									</div>
									<label class="col-sm-2 control-label">备件默认地址</label>
									<div class="col-sm-4">
										<div class="col-md-11">
											<select id="pay-isDefaultPart" class="form-control" datatype="*">
												<option value="0">否</option>
												<option value="1">是</option>
											</select>
										</div>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">备注</label>
									<div class="col-sm-10">
										<div class="col-md-11">
											<textarea class="form-control" type="text" id="invoiceMemo"
												name="invoiceMemo"></textarea>
										</div>
									</div>
								</div>
							</div>
						</div>
						<div class="modal-footer">
							<button type="button" class="btn btn-info" id="payInfoSave">保存</button>
							<button type="button" class="btn btn-default"
								data-dismiss="modal">返回</button>
						</div>
					</div>
				</form>
			</div>
		</div>

		<!-- 新增邮寄信息dialog -->
		<div class="modal" id="mailingInfo">
			<div class="modal-dialog modal-lg" role="dialog">
				<form id="mailingInfoForm">
					<input class="form-control" type="hidden" id="mailingId"
						name="mailingInfoId" />
					<div class="modal-content">
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal"
								aria-label="Close">
								<span aria-hidden="true">&times;</span>
							</button>
							<h4 class="modal-title">
								<strong>邮寄信息</strong>
							</h4>
						</div>
						<div class="modal-body">
							<div class="form-horizontal">
								<div class="form-group">
									<label class="col-sm-2 control-label">邮寄单位</label>
									<div class="col-sm-4">
										<div class="col-md-11">
											<input class="form-control" type="text" name="postUnit"
												id="postUnit" />
										</div>
									</div>
									<label class="col-sm-2 control-label">邮寄邮编</label>
									<div class="col-sm-4">
										<div class="col-md-11">
											<input class="form-control" type="text" name="postZip"
												id="postZip" />
										</div>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">邮寄代表</label>
									<div class="col-sm-4">
										<div class="col-md-11">
											<input class="form-control" type="text" name="postDelegate"
												id="postDelegate" />
										</div>
									</div>
									<label class="col-sm-2 control-label">邮寄电话</label>
									<div class="col-sm-4">
										<div class="col-md-11">
											<input class="form-control" type="text" name="postPhone"
												id="postPhone" />
										</div>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">邮寄地址</label>
									<div class="col-sm-10">
										<div class="col-md-11">
											<input class="form-control" type="text" name="postAddress"
												id="postAddress" />
										</div>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">主机默认地址</label>
									<div class="col-sm-4">
										<div class="col-md-11">
											<select id="mailing-isDefaultHost" class="form-control" datatype="*">
												<option value="0">否</option>
												<option value="1">是</option>
											</select>
										</div>
									</div>
									<label class="col-sm-2 control-label">备件默认地址</label>
									<div class="col-sm-4">
										<div class="col-md-11">
											<select id="mailing-isDefaultPart" class="form-control" datatype="*">
												<option value="0">否</option>
												<option value="1">是</option>
											</select>
										</div>
									</div>
								</div>
							</div>
						</div>
						<div class="modal-footer">
							<button type="button" class="btn btn-info" id="mailingInfoSave">保存</button>
							<button type="button" class="btn btn-default"
								data-dismiss="modal">返回</button>
						</div>
					</div>
				</form>
			</div>
		</div>


		<!-- 新增发货信息dialog -->
		<div class="modal " id="sendInfo">
			<div class="modal-dialog modal-lg" role="dialog">
				<form id="sendInfoForm">
					<input class="form-control" type="hidden" id="sendId"
						name="sendInfoId" />
					<div class="modal-content">
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal"
								aria-label="Close">
								<span aria-hidden="true">&times;</span>
							</button>
							<h4 class="modal-title">
								<strong>发货信息</strong>
							</h4>
						</div>
						<div class="modal-body">
							<div class="form-horizontal">
								<div class="form-group">
									<label class="col-sm-2 control-label">单位名称</label>
									<div class="col-sm-4">
										<input class="form-control" type="text" name="cUnitName"
											id="cUnitName" />
									</div>

									<label class="col-sm-1 control-label">邮编</label>
									<div class="col-sm-2">
										<input class="form-control" type="text" name="cSHYB"
											id="cSHYB" />
									</div>
									<label class="col-sm-1 control-label">收货人</label>
									<div class="col-sm-2">
										<input class="form-control" type="text" name="cSHName"
											id="cSHName" />
									</div>

								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">电话</label>
									<div class="col-sm-4">
										<input class="form-control" type="text" name="cSHPhoneName"
											id="cSHPhoneName" />
									</div>
									<label class="col-sm-2 control-label">发货地址</label>
									<div class="col-sm-4">
										<input class="form-control" type="text" name="cPhoneNumber"
											id="cPhoneNumber" />
									</div>

								</div>
									<div class="form-group">
									<label class="col-sm-2 control-label">主机默认地址</label>
									<div class="col-sm-4">
											<select id="send-isDefaultHost" class="form-control" datatype="*">
												<option value="0">否</option>
												<option value="1">是</option>
											</select>
									</div>
									<label class="col-sm-2 control-label">备件默认地址</label>
									<div class="col-sm-4">
											<select id="send-isDefaultPart" class="form-control" datatype="*">
												<option value="0">否</option>
												<option value="1">是</option>
											</select>
									</div>
								</div>
							</div>
						</div>
						<div class="modal-footer">
							<button type="button" class="btn btn-info" id="sendInfoSave">保存</button>
							<button type="button" class="btn btn-default"
								data-dismiss="modal">返回</button>
						</div>
					</div>
				</form>
			</div>
		</div>





































		<!--关键客户弹窗-->
		<div class="modal" id="customerkeyModal">
			<div class="modal-dialog" role="dialog">
				<form id="keyContactEdit">
					<div class="modal-content">
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal"
								aria-label="Close">
								<span aria-hidden="true">&times;</span>
							</button>
							<h4 class="modal-title">
								<strong>客户关键人物</strong>
							</h4>
						</div>
						<div class="modal-body">
							<div class="form-horizontal">
								<div class="form-group">
									<input type="hidden" name="keyId" id="keyId" /> <input
										type="hidden" name="keycreateTime" id="keycreateTime" /> <label
										class="col-sm-2 control-label">姓名</label>
									<div class="col-sm-4">
										<div class="col-md-11">
											<input class="form-control" type="text" name="keyname"
												id="keyname" datatype="*,*1-100" nullmsg="请输入姓名" />
										</div>
										<div class="col-md-1">
											<span style="color: #F00">*</span>
										</div>
									</div>
									<label class="col-sm-2 control-label">联系方式</label>
									<div class="col-sm-4">
										<input class="form-control" type="text" name="contactType"
											id="contactType" />
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">称呼</label>
									<div class="col-sm-4">
										<div class="col-md-11">
											<input class="form-control" type="text" name="calledName"
												id="calledName" />
										</div>
									</div>
									<label class="col-sm-2 control-label">职务</label>
									<div class="col-sm-4">
										<input class="form-control" type="text" name="postion"
											id="postion" />
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">专业</label>
									<div class="col-sm-4">
										<div class="col-md-11">
											<input class="form-control" type="text" name="major"
												id="major" />
										</div>
									</div>
									<label class="col-sm-2 control-label">管理范围</label>
									<div class="col-sm-4">
										<input class="form-control" type="text" name="domain"
											id="domain" />
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">备注</label>
									<div class="col-sm-10">
										<div class="col-md-11">
											<input class="form-control" type="text" name="memo" id="memo" />
										</div>
									</div>
								</div>
							</div>
						</div>
						<div class="modal-footer">
							<button type="button" class="btn btn-primary saveKeyBtn">保存</button>
							<button type="button" class="btn btn-default"
								data-dismiss="modal">返回</button>

						</div>
					</div>
				</form>
			</div>
		</div>

		<script th:src="@{/customer/customerEdit.js}"></script>
	</div>
</body>
</html>

